package com.neuedu.controller.physician;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.neuedu.bean.MedicalTechnology;
import com.neuedu.bean.RestBean;
import com.neuedu.service.physician.PhysicianCheckService;

/**
 * 医生看诊：检查管理
 */
@RestController
public class PhysicianCheckController {
//	@Autowired
	private PhysicianCheckService physicianCheckService;

	// 按检查项目名称和检查项目编码查询检查项目
	@PostMapping("getCheck")
	public List<MedicalTechnology> getCheck(String techCode, String techName) {
		MedicalTechnology con = new MedicalTechnology();
		con.setTechCode(techCode);
		con.setTechName(techName);
		return physicianCheckService.getCheck(con);
	}

	@PostMapping("addCheckRequest")
	public RestBean addCheckRequest(String registerId, String[] medicalTechnologyIds, String checkInfo,
			String checkPosition, String checkRemark) {

		return physicianCheckService.addCheckRequest(registerId, medicalTechnologyIds, checkInfo, checkPosition,
				checkRemark);
	}
}
